package distributed.entity;

/**
 * Entity for recording of User data, including the client's id with the server
 * @author Marcus Menghini
 *
 */
public class User {
	/** The user's name */
	String name;
	
	/** The id of this user's client */
	String clientID;
	
	/** This user's position in the event */
	int position;
	
	/**
	 * @param name String, the name of the User.
	 * @param id String, the ID of the User.
	 * @param pos integer, the poition of the User.
	 */
	public User(String name, String id, int pos) {
		this.name = name;
		this.clientID = id;
		this.position = pos;
	}
	
	/**
	 * @return name String, returns the name of the User.
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * @return clientID String, returns the ID of the User.
	 */
	public String getID() {
		return clientID;
	}

	/**
	 * @return position integer, returns the index of the User.
	 */
	public int getIndex() {
		return position;
	}
}
